package pers.luofei.http.client.annotations;

import pers.luofei.http.client.converter.DefaultResponseBodyDecoder;
import pers.luofei.http.client.converter.ResponseBodyDecoder;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author luofei[fei12990@foxmail.com]
 * @date 2017/10/13
 */
@Target({ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface ResponseDecoder {

    Class<? extends ResponseBodyDecoder> decoder() default DefaultResponseBodyDecoder.class;
}
